<template>
  <div class="card">
    <div class="avatar">
      <img src="../../../assets/images/default-avatar.jpg" alt="">
    </div>
    <div class="info">
      <div class="title">{{ item.storeName }}</div>
    </div>
    <div class="list">
      <el-table class="cardTable" :data="item.contractList" height="200" size="mini">
        <el-table-column prop="headName" label="负责人"></el-table-column>
        <el-table-column prop="contractStr" label="联系地址"></el-table-column>
        <el-table-column prop="telNumber" label="联系电话"></el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  name: "StoreCard",
  props: {
    item: {
      type: Object,
      default: () => ({})
    }
  }
}
</script>

<style scoped lang="scss">
.card {
  padding: 6px 10px;
  display: flex;
  border-bottom: 1px solid #dddddd;

  .avatar {
    img {
      width: 100px;
      height: 100px;
    }
  }

  .info {
    margin: 0 20px;
    flex-shrink: 0;
    width: 30%;

    .title {
      color: #409eff;
      font-weight: 700;
      font-size: 24px;
    }
  }

  .list {
    width: 100%;
  }
  .cardTable{
    font-size: 18px!important;
  }
}
</style>
